ModuleNotFoundError: No module named pytz

45

# If you are using Python 2 (Windows)
pip install pytz

# if you are using Python 3 (Windows)
pip3 install pytz

# If the pip is not set as environment varibale PATH
python -m pip install pytz

# If you are using Python 2 (Linux)
sudo pip install pytz

# if you are using Python 3 (Linux)
sudo pip3 install pytz

# In case if you have to easy_install
sudo easy_install -U pytz

# On Centos
yum install pytz

# On Ubuntu
sudo apt-get install pytz

# If you are installing it in Anaconda 
conda install -c conda-forge pytz

Comments

Submit
0 Comments